package com.mz.mattress.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mz.mattress.admin.api.req.MemberQueryReq;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Member;

import java.util.Set;

public interface MemberService {

    Result<IPage<Member>> listPage(MemberQueryReq req);

    Result<Member> getById(Long id);

    Result add(Member sale);

    Result updateById(Member sale);

    Result deleteByIds(Set<Long> ids);

    //更新会员订单数
    void calMemberOrderCount();

}
